package com.stec.masterdata.handler.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.stec.framework.handler.service.AdvMySqlHandlerService;
import com.stec.masterdata.entity.Teacher;
import com.stec.masterdata.handler.TeacherHandler;
import com.stec.masterdata.service.TeacherService;
import org.springframework.stereotype.Component;

import java.util.List;

@Service
@Component
public class TeacherHandlerImpl extends AdvMySqlHandlerService<TeacherService, Teacher,Long> implements TeacherHandler {
    @Override
    public int selectByName(String name) {
        return this.privateService.selectByName(name);
    }

    @Override
    public List<Teacher> selectOne(String name) {
        return this.privateService.selectOne(name);
    }
}
